package hb.software.achievement.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import hb.software.achievement.domain.Achievement;
import hb.software.achievement.service.AchievementManager;
import hb.software.web.spring.controller.GenericController;

/**
 * @ClassName: AchievementController
 * @Description: Controller of Achievement Module
 * @author SunHaobo
 * @date May 27, 2020 7:26:55 PM
 * 
 */
@Controller
@RequestMapping("/achievement")
public class AchievementController extends GenericController<Achievement, Long, AchievementManager> {

	AchievementManager achievementManager;

	@Autowired
	public void setAchievementManager(AchievementManager achievementManager) {
		this.achievementManager = achievementManager;
		this.manager = this.achievementManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/achievement/index";
		return result;
	}

}